package com.zeyi.chat.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zeyi
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Chat implements Serializable {
    private static final long serialVersionUID = -6617933459606280832L;
    private Integer id;
    private String chatName;
    private Integer createId;
    private String avatar;
    private String account;
    private Boolean isOnline;

    public Chat(Integer id, String chatName, Integer createId, String avatar, String account) {
        this.id = id;
        this.chatName = chatName;
        this.createId = createId;
        this.avatar = avatar;
        this.account = account;
    }
}
